@import '~@/style/base.less';

.layout() {
  background: #FFFFFF;
  border-radius: 16px;
  margin: 16px 24px;
}

.tab_hidden {
  height: 90px;
}

.orderlist_tab {
  position: fixed;
  z-index: 4;
  top: @header_height;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  background: #ffffff;
  padding: 0 50px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);

  >span {
    flex: 0 0 180px;
    line-height: 90px;
    text-align: center;

    &.active {
      color: @color_theme;
      position: relative;

      &::after {
        content: "";
        display: block;
        width: 40px;
        height: 8px;
        background: @color_theme;
        box-shadow: 0px 4px 10px 0px rgba(2, 173, 218, 0.2);
        border-radius: 6px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 12px;
      }
    }
  }
}

.order_card {
  .layout();
  .listAnimIn();

  &_title {
    color: @color_desc;
    font-size: 28px;
    padding: 22px 24px;
    position: relative;
    .hairline(bottom, @color_border_simple);
  }

  &_content {
    padding: 32px 24px 25px;
    font-size: 28px;
    color: #333;

    >div {
      .frow(space-between, center);

      &:nth-child(2) {
        margin-top: 35px;
        font-size: 30px;

        .price {
          color: @color_price;
        }
        .price_desc {
          color: @color_subtext;
          font-size: 18px;
        }
      }
    }
  }

  &_footer {
    &_order_info {
      color: @color_subtext;
      font-size: 28px;
      position: relative;
      padding: 26px 24px;
      .hairline(top, @color_border_simple);
      .frow(space-between, center);
    }

    &_comment {

      padding: 0 24px 28px;
      background: #fff;

      .comment_inner {
        padding: 20px;
        background: @color_search_bg;
        border-radius: 16px;
        font-size: 24px;
        color: #333;
       
        >div {
          .frow(space-between, center);

          .to_comment {
            color: @color_theme;
          }
          .hasMore {
            .hasMore(0, 24px);
          }
        }
        &.comment_btn {
          color: @color_theme;
          .frow(center, center);
        }

        p {
          margin-top: 8px;
          color: @color_desc;
        }
      }

      .edit_icon {
        display: inline-block;
        flex: 0 0 auto;
        width: 20px;
        height: 21px;
        background: url('~@/assets/images/edit_icon.png') center no-repeat;
        background-size: 20px auto;
        font-size: 0;
        margin-right: 8px;
      }
    }
  }
}
